package com.aaa.dao.impl;

import com.aaa.dao.UserInfoDao;
import com.aaa.utils.BaseDao;

import java.util.List;
import java.util.Map;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/7/29 16:11
 * @description：
 * @modified By：
 * @version:
 */
public class UserInfoDaoImpl extends BaseDao implements UserInfoDao {
    @Override
    public boolean checkUser(Map<String, Object> map) {
        String sql="select * from userinfo where username=? and password=?";
        List<Map<String, Object>> mapList = executeQuery(sql, map.get("username"), map.get("password"));
        if(null!=mapList&&mapList.size()>0){
            return  true;
        }
        return false;
    }
}
